'use strict';
exports.main = async (event, context) => {
	const res = await uniCloud.httpclient.request('https://api.weixin.qq.com/sns/jscode2session', {
			method: 'GET',
			data: {
				appid: 'wx5c439912d9056427',
				secret: '6a91f8708cdeb012519cddb6b906904d',
				js_code: event.code,// 客户端传递过来的code
				grant_type: 'authorization_code'
			},
			dataType: 'json'
		})
		
		return res;
};
